package com.ticket.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Plane {
    private int id;
    private String company;
    private String airlineCode;
    private String mode;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone ="GMT+8")//后端到前端
    private Date startTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone ="GMT+8")
    private Date arriveTime;
    private String startCity;
    private String arriveCity;
    private String startDrome;
    private String arriveDrome;

    @Override
    public String toString() {
        return "Plane{" +
                "id=" + id +
                ", company='" + company + '\'' +
                ", airlineCode='" + airlineCode + '\'' +
                ", mode='" + mode + '\'' +
                ", startTime=" + startTime +
                ", arriveTime=" + arriveTime +
                ", startCity='" + startCity + '\'' +
                ", arriveCity='" + arriveCity + '\'' +
                ", startDrome='" + startDrome + '\'' +
                ", arriveDrome='" + arriveDrome + '\'' +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public String getAirlineCode() {
        return airlineCode;
    }

    public void setAirlineCode(String airlineCode) {
        this.airlineCode = airlineCode;
    }

    public String getMode() {
        return mode;
    }

    public void setMode(String mode) {
        this.mode = mode;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getArriveTime() {
        return arriveTime;
    }

    public void setArriveTime(Date arriveTime) {
        this.arriveTime = arriveTime;
    }

    public String getStartCity() {
        return startCity;
    }

    public void setStartCity(String startCity) {
        this.startCity = startCity;
    }

    public String getArriveCity() {
        return arriveCity;
    }

    public void setArriveCity(String arriveCity) {
        this.arriveCity = arriveCity;
    }

    public String getStartDrome() {
        return startDrome;
    }

    public void setStartDrome(String startDrome) {
        this.startDrome = startDrome;
    }

    public String getArriveDrome() {
        return arriveDrome;
    }

    public void setArriveDrome(String arriveDrome) {
        this.arriveDrome = arriveDrome;
    }
}
